import mysql from '../config/mysql';
import knex from 'knex';

export default knex({
    client: 'mysql',
    pool: {
        min: 0,
        max: 10,
    },
    connection: {
        host: mysql.host,
        port: mysql.port,
        user: mysql.user,
        password: mysql.pass,
        database: mysql.db,
        charset: mysql.char,
        multipleStatements: true,
    },
});
